﻿using CnBlogsClient.Views.Articles;
using CnBlogsClient.Views.News;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Xamarin.Forms;

namespace CnBlogsClient.Views
{
    public class HomeTabbedPage : TabbedPage
    {
        bool hasInitialization;
        public HomeTabbedPage()
        {
            Title = "首页";
            Xamarin.Forms.NavigationPage.SetHasNavigationBar(this, false);
        }

        protected override void OnAppearing()
        {
            base.OnAppearing();

            if (!hasInitialization)
            {
                this.Children.Add(new NewsTopTabbedPage());
                this.Children.Add(new KbArticlePage());

                hasInitialization = true;
            }
        }
    }
}